﻿using System;

namespace NodeJS.os
{
    public abstract class CpuInfo
    {
        /// <summary>
        /// The number of milliseconds the CPU/core spent in each field
        /// </summary>
        public abstract class CpuTimes
        {
            public readonly long User;
            public readonly long Nice;
            public readonly long Sys;
            public readonly long Idle;
            public readonly long Irq;
        }

        public readonly string Model;

        /// <summary>
        /// MHz
        /// </summary>
        public readonly int Speed;

        public readonly CpuTimes Times;
    }
}
